projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37697f1
)
gdkglcontext-x11: Make sure to enable the scissor test
author
Jasper St. Pierre
<jstpierre@mecheye.net>
Sat, 22 Nov 2014 18:01:51 +0000
(10:01 -0800)
committer
Jasper St. Pierre
<jstpierre@mecheye.net>
Sat, 22 Nov 2014 18:01:51 +0000
(10:01 -0800)
gdk/x11/gdkglcontext-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkglcontext-x11.c
b/gdk/x11/gdkglcontext-x11.c
index 92d0b9e709d7f6dbc841e84f14f8c8af990f1b55..171ad05f09f59fee1203ebd882b63626b94e58e3 100644
(file)
--- a/
gdk/x11/gdkglcontext-x11.c
+++ b/
gdk/x11/gdkglcontext-x11.c
@@
-470,6
+470,8
@@
gdk_x11_gl_context_texture_from_surface (GdkGLContext *paint_context,
glXBindTexImageEXT (glx_pixmap->display, glx_pixmap->drawable,
GLX_FRONT_LEFT_EXT, NULL);
+ glEnable (GL_SCISSOR_TEST);
+
n_rects = cairo_region_num_rectangles (region);
for (i = 0; i < n_rects; i++)
{
@@
-509,6
+511,8
@@
gdk_x11_gl_context_texture_from_surface (GdkGLContext *paint_context,
}
}
+ glDisable (GL_SCISSOR_TEST);
+
glXReleaseTexImageEXT (glx_pixmap->display, glx_pixmap->drawable,
GLX_FRONT_LEFT_EXT);